
package com.eastmountain.chinese.db.flashcards.connection;

abstract public class DBAccessData {
    
    protected String className = getClass().getName();

    protected static final String FLASHCARD_SOURCE_TEXT
        = "ABSTRACT FLASHCARD SOURCE DB";
    
    protected String flashCardSource;

    public static final String FLASHCARD_SOURCE_CHINESPOD
    = "C";
    public static final String FLASHCARD_SOURCE_PCR
    = "P";
    public static final String FLASHCARD_SOURCE_MIT
    = "M";
    public static final String FLASHCARD_SOURCE_RLC
    = "R";


    protected static final String DERBY_JDBC_DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver";
    protected static final String DERBY_SHUTDOWN = "jdbc:derby:;shutdown=true";

    protected static final String DATA_DB_URL = "jdbc:derby:C:/HanZiDBs/CHPODS";
   
    public static final String DB_IDENTIFIER_CHPODS = "CHPODS";
    public static final String DB_IDENTIFIER_PCRS = "PCRS";
    
    public String getClassName() {
        return className;
    }
   
    public String getFLASHCARD_SOURCE_TEXT() {
    
        return FLASHCARD_SOURCE_TEXT;
    }

    public String getDERBY_JDBC_DRIVER_NAME() {

        return DERBY_JDBC_DRIVER_NAME;
    }

    public String getDERBY_SHUTDOWN() {

        return DERBY_SHUTDOWN;
    }

    public String getDATA_DB_URL() {

        return DATA_DB_URL;
    }

    abstract public String getFlashCardSource();

    abstract public void setFlashCardSource( String flashCardSource );
 
}